home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / widgets-mesa / configure < prev    next >
Encoding:
Text File  |  1997-02-15  |  77.9 KB  |  2,581 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16. ac_help="$ac_help
  17.   --enable-debug          also compile debugging code"
  18. ac_help="$ac_help
  19.   --with-motif            also compile the Motif widgets (untested)"
  20. ac_help="$ac_help
  21.   --with-mesadir=PATH     use the Mesa tree rooted in PATH (default: ..)"
  22.  
  23. # Initialize some variables set by options.
  24. # The variables have the same names as the options, with
  25. # dashes changed to underlines.
  26. build=NONE
  27. cache_file=./config.cache
  28. exec_prefix=NONE
  29. host=NONE
  30. no_create=
  31. nonopt=NONE
  32. no_recursion=
  33. prefix=NONE
  34. program_prefix=NONE
  35. program_suffix=NONE
  36. program_transform_name=s,x,x,
  37. silent=
  38. site=
  39. srcdir=
  40. target=NONE
  41. verbose=
  42. x_includes=NONE
  43. x_libraries=NONE
  44. bindir='${exec_prefix}/bin'
  45. sbindir='${exec_prefix}/sbin'
  46. libexecdir='${exec_prefix}/libexec'
  47. datadir='${prefix}/share'
  48. sysconfdir='${prefix}/etc'
  49. sharedstatedir='${prefix}/com'
  50. localstatedir='${prefix}/var'
  51. libdir='${exec_prefix}/lib'
  52. includedir='${prefix}/include'
  53. oldincludedir='/usr/include'
  54. infodir='${prefix}/info'
  55. mandir='${prefix}/man'
  56.  
  57. # Initialize some other variables.
  58. subdirs=
  59. MFLAGS= MAKEFLAGS=
  60. # Maximum number of lines to put in a shell here document.
  61. ac_max_here_lines=12
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   case "$ac_option" in
  75.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  76.   *) ac_optarg= ;;
  77.   esac
  78.  
  79.   # Accept the important Cygnus configure options, so we can diagnose typos.
  80.  
  81.   case "$ac_option" in
  82.  
  83.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  84.     ac_prev=bindir ;;
  85.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  86.     bindir="$ac_optarg" ;;
  87.  
  88.   -build | --build | --buil | --bui | --bu)
  89.     ac_prev=build ;;
  90.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  91.     build="$ac_optarg" ;;
  92.  
  93.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  94.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  95.     ac_prev=cache_file ;;
  96.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  97.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  98.     cache_file="$ac_optarg" ;;
  99.  
  100.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  101.     ac_prev=datadir ;;
  102.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  103.   | --da=*)
  104.     datadir="$ac_optarg" ;;
  105.  
  106.   -disable-* | --disable-*)
  107.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  108.     # Reject names that are not valid shell variable names.
  109.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  110.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  111.     fi
  112.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  113.     eval "enable_${ac_feature}=no" ;;
  114.  
  115.   -enable-* | --enable-*)
  116.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  117.     # Reject names that are not valid shell variable names.
  118.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  119.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  120.     fi
  121.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  122.     case "$ac_option" in
  123.       *=*) ;;
  124.       *) ac_optarg=yes ;;
  125.     esac
  126.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  127.  
  128.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  129.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  130.   | --exec | --exe | --ex)
  131.     ac_prev=exec_prefix ;;
  132.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  133.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  134.   | --exec=* | --exe=* | --ex=*)
  135.     exec_prefix="$ac_optarg" ;;
  136.  
  137.   -gas | --gas | --ga | --g)
  138.     # Obsolete; use --with-gas.
  139.     with_gas=yes ;;
  140.  
  141.   -help | --help | --hel | --he)
  142.     # Omit some internal or obsolete options to make the list less imposing.
  143.     # This message is too long to be a string in the A/UX 3.1 sh.
  144.     cat << EOF
  145. Usage: configure [options] [host]
  146. Options: [defaults in brackets after descriptions]
  147. Configuration:
  148.   --cache-file=FILE       cache test results in FILE
  149.   --help                  print this message
  150.   --no-create             do not create output files
  151.   --quiet, --silent       do not print \`checking...' messages
  152.   --version               print the version of autoconf that created configure
  153. Directory and file names:
  154.   --prefix=PREFIX         install architecture-independent files in PREFIX
  155.                           [$ac_default_prefix]
  156.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  157.                           [same as prefix]
  158.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  159.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  160.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  161.   --datadir=DIR           read-only architecture-independent data in DIR
  162.                           [PREFIX/share]
  163.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  164.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  165.                           [PREFIX/com]
  166.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  167.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  168.   --includedir=DIR        C header files in DIR [PREFIX/include]
  169.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  170.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  171.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  172.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  173.   --program-prefix=PREFIX prepend PREFIX to installed program names
  174.   --program-suffix=SUFFIX append SUFFIX to installed program names
  175.   --program-transform-name=PROGRAM
  176.                           run sed PROGRAM on installed program names
  177. EOF
  178.     cat << EOF
  179. Host type:
  180.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  181.   --host=HOST             configure for HOST [guessed]
  182.   --target=TARGET         configure for TARGET [TARGET=HOST]
  183. Features and packages:
  184.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  185.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  186.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  187.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  188.   --x-includes=DIR        X include files are in DIR
  189.   --x-libraries=DIR       X library files are in DIR
  190. EOF
  191.     if test -n "$ac_help"; then
  192.       echo "--enable and --with options recognized:$ac_help"
  193.     fi
  194.     exit 0 ;;
  195.  
  196.   -host | --host | --hos | --ho)
  197.     ac_prev=host ;;
  198.   -host=* | --host=* | --hos=* | --ho=*)
  199.     host="$ac_optarg" ;;
  200.  
  201.   -includedir | --includedir | --includedi | --included | --include \
  202.   | --includ | --inclu | --incl | --inc)
  203.     ac_prev=includedir ;;
  204.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  205.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  206.     includedir="$ac_optarg" ;;
  207.  
  208.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  209.     ac_prev=infodir ;;
  210.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  211.     infodir="$ac_optarg" ;;
  212.  
  213.   -libdir | --libdir | --libdi | --libd)
  214.     ac_prev=libdir ;;
  215.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  216.     libdir="$ac_optarg" ;;
  217.  
  218.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  219.   | --libexe | --libex | --libe)
  220.     ac_prev=libexecdir ;;
  221.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  222.   | --libexe=* | --libex=* | --libe=*)
  223.     libexecdir="$ac_optarg" ;;
  224.  
  225.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  226.   | --localstate | --localstat | --localsta | --localst \
  227.   | --locals | --local | --loca | --loc | --lo)
  228.     ac_prev=localstatedir ;;
  229.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  230.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  231.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  232.     localstatedir="$ac_optarg" ;;
  233.  
  234.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  235.     ac_prev=mandir ;;
  236.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  237.     mandir="$ac_optarg" ;;
  238.  
  239.   -nfp | --nfp | --nf)
  240.     # Obsolete; use --without-fp.
  241.     with_fp=no ;;
  242.  
  243.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  244.   | --no-cr | --no-c)
  245.     no_create=yes ;;
  246.  
  247.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  248.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  249.     no_recursion=yes ;;
  250.  
  251.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  252.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  253.   | --oldin | --oldi | --old | --ol | --o)
  254.     ac_prev=oldincludedir ;;
  255.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  256.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  257.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  258.     oldincludedir="$ac_optarg" ;;
  259.  
  260.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  261.     ac_prev=prefix ;;
  262.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  263.     prefix="$ac_optarg" ;;
  264.  
  265.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  266.   | --program-pre | --program-pr | --program-p)
  267.     ac_prev=program_prefix ;;
  268.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  269.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  270.     program_prefix="$ac_optarg" ;;
  271.  
  272.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  273.   | --program-suf | --program-su | --program-s)
  274.     ac_prev=program_suffix ;;
  275.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  276.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  277.     program_suffix="$ac_optarg" ;;
  278.  
  279.   -program-transform-name | --program-transform-name \
  280.   | --program-transform-nam | --program-transform-na \
  281.   | --program-transform-n | --program-transform- \
  282.   | --program-transform | --program-transfor \
  283.   | --program-transfo | --program-transf \
  284.   | --program-trans | --program-tran \
  285.   | --progr-tra | --program-tr | --program-t)
  286.     ac_prev=program_transform_name ;;
  287.   -program-transform-name=* | --program-transform-name=* \
  288.   | --program-transform-nam=* | --program-transform-na=* \
  289.   | --program-transform-n=* | --program-transform-=* \
  290.   | --program-transform=* | --program-transfor=* \
  291.   | --program-transfo=* | --program-transf=* \
  292.   | --program-trans=* | --program-tran=* \
  293.   | --progr-tra=* | --program-tr=* | --program-t=*)
  294.     program_transform_name="$ac_optarg" ;;
  295.  
  296.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  297.   | -silent | --silent | --silen | --sile | --sil)
  298.     silent=yes ;;
  299.  
  300.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  301.     ac_prev=sbindir ;;
  302.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  303.   | --sbi=* | --sb=*)
  304.     sbindir="$ac_optarg" ;;
  305.  
  306.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  307.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  308.   | --sharedst | --shareds | --shared | --share | --shar \
  309.   | --sha | --sh)
  310.     ac_prev=sharedstatedir ;;
  311.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  312.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  313.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  314.   | --sha=* | --sh=*)
  315.     sharedstatedir="$ac_optarg" ;;
  316.  
  317.   -site | --site | --sit)
  318.     ac_prev=site ;;
  319.   -site=* | --site=* | --sit=*)
  320.     site="$ac_optarg" ;;
  321.  
  322.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  323.     ac_prev=srcdir ;;
  324.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  325.     srcdir="$ac_optarg" ;;
  326.  
  327.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  328.   | --syscon | --sysco | --sysc | --sys | --sy)
  329.     ac_prev=sysconfdir ;;
  330.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  331.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  332.     sysconfdir="$ac_optarg" ;;
  333.  
  334.   -target | --target | --targe | --targ | --tar | --ta | --t)
  335.     ac_prev=target ;;
  336.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  337.     target="$ac_optarg" ;;
  338.  
  339.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  340.     verbose=yes ;;
  341.  
  342.   -version | --version | --versio | --versi | --vers)
  343.     echo "configure generated by autoconf version 2.12"
  344.     exit 0 ;;
  345.  
  346.   -with-* | --with-*)
  347.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  348.     # Reject names that are not valid shell variable names.
  349.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  350.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  351.     fi
  352.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  353.     case "$ac_option" in
  354.       *=*) ;;
  355.       *) ac_optarg=yes ;;
  356.     esac
  357.     eval "with_${ac_package}='$ac_optarg'" ;;
  358.  
  359.   -without-* | --without-*)
  360.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  361.     # Reject names that are not valid shell variable names.
  362.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  363.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  364.     fi
  365.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  366.     eval "with_${ac_package}=no" ;;
  367.  
  368.   --x)
  369.     # Obsolete; use --with-x.
  370.     with_x=yes ;;
  371.  
  372.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  373.   | --x-incl | --x-inc | --x-in | --x-i)
  374.     ac_prev=x_includes ;;
  375.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  376.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  377.     x_includes="$ac_optarg" ;;
  378.  
  379.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  380.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  381.     ac_prev=x_libraries ;;
  382.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  383.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  384.     x_libraries="$ac_optarg" ;;
  385.  
  386.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  387.     ;;
  388.  
  389.   *)
  390.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  391.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  392.     fi
  393.     if test "x$nonopt" != xNONE; then
  394.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  395.     fi
  396.     nonopt="$ac_option"
  397.     ;;
  398.  
  399.   esac
  400. done
  401.  
  402. if test -n "$ac_prev"; then
  403.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  404. fi
  405.  
  406. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  407.  
  408. # File descriptor usage:
  409. # 0 standard input
  410. # 1 file creation
  411. # 2 errors and warnings
  412. # 3 some systems may open it to /dev/tty
  413. # 4 used on the Kubota Titan
  414. # 6 checking for... messages and results
  415. # 5 compiler messages saved in config.log
  416. if test "$silent" = yes; then
  417.   exec 6>/dev/null
  418. else
  419.   exec 6>&1
  420. fi
  421. exec 5>./config.log
  422.  
  423. echo "\
  424. This file contains any messages produced by compilers while
  425. running configure, to aid debugging if configure makes a mistake.
  426. " 1>&5
  427.  
  428. # Strip out --no-create and --no-recursion so they do not pile up.
  429. # Also quote any args containing shell metacharacters.
  430. ac_configure_args=
  431. for ac_arg
  432. do
  433.   case "$ac_arg" in
  434.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  435.   | --no-cr | --no-c) ;;
  436.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  437.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  438.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  439.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  440.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  441.   esac
  442. done
  443.  
  444. # NLS nuisances.
  445. # Only set these to C if already set.  These must not be set unconditionally
  446. # because not all systems understand e.g. LANG=C (notably SCO).
  447. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  448. # Non-C LC_CTYPE values break the ctype check.
  449. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  450. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  451. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  452. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  453.  
  454. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  455. rm -rf conftest* confdefs.h
  456. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  457. echo > confdefs.h
  458.  
  459. # A filename unique to this package, relative to the directory that
  460. # configure is in, which we can look for to find out if srcdir is correct.
  461. ac_unique_file=src/GLwDrawingArea.c
  462.  
  463. # Find the source files, if location was not specified.
  464. if test -z "$srcdir"; then
  465.   ac_srcdir_defaulted=yes
  466.   # Try the directory containing this script, then its parent.
  467.   ac_prog=$0
  468.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  469.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  470.   srcdir=$ac_confdir
  471.   if test ! -r $srcdir/$ac_unique_file; then
  472.     srcdir=..
  473.   fi
  474. else
  475.   ac_srcdir_defaulted=no
  476. fi
  477. if test ! -r $srcdir/$ac_unique_file; then
  478.   if test "$ac_srcdir_defaulted" = yes; then
  479.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  480.   else
  481.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  482.   fi
  483. fi
  484. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  485.  
  486. # Prefer explicitly selected file to automatically selected ones.
  487. if test -z "$CONFIG_SITE"; then
  488.   if test "x$prefix" != xNONE; then
  489.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  490.   else
  491.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  492.   fi
  493. fi
  494. for ac_site_file in $CONFIG_SITE; do
  495.   if test -r "$ac_site_file"; then
  496.     echo "loading site script $ac_site_file"
  497.     . "$ac_site_file"
  498.   fi
  499. done
  500.  
  501. if test -r "$cache_file"; then
  502.   echo "loading cache $cache_file"
  503.   . $cache_file
  504. else
  505.   echo "creating cache $cache_file"
  506.   > $cache_file
  507. fi
  508.  
  509. ac_ext=c
  510. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  511. ac_cpp='$CPP $CPPFLAGS'
  512. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  513. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  514. cross_compiling=$ac_cv_prog_cc_cross
  515.  
  516. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  517.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  518.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  519.     ac_n= ac_c='
  520. ' ac_t='    '
  521.   else
  522.     ac_n=-n ac_c= ac_t=
  523.   fi
  524. else
  525.   ac_n= ac_c='\c' ac_t=
  526. fi
  527.  
  528. ac_aux_dir=
  529. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  530.   if test -f $ac_dir/install-sh; then
  531.     ac_aux_dir=$ac_dir
  532.     ac_install_sh="$ac_aux_dir/install-sh -c"
  533.     break
  534.   elif test -f $ac_dir/install.sh; then
  535.     ac_aux_dir=$ac_dir
  536.     ac_install_sh="$ac_aux_dir/install.sh -c"
  537.     break
  538.   fi
  539. done
  540. if test -z "$ac_aux_dir"; then
  541.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  542. fi
  543. ac_config_guess=$ac_aux_dir/config.guess
  544. ac_config_sub=$ac_aux_dir/config.sub
  545. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  546.  
  547.  
  548. # Make sure we can run config.sub.
  549. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  550. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  551. fi
  552.  
  553. echo $ac_n "checking host system type""... $ac_c" 1>&6
  554. echo "configure:555: checking host system type" >&5
  555.  
  556. host_alias=$host
  557. case "$host_alias" in
  558. NONE)
  559.   case $nonopt in
  560.   NONE)
  561.     if host_alias=`$ac_config_guess`; then :
  562.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  563.     fi ;;
  564.   *) host_alias=$nonopt ;;
  565.   esac ;;
  566. esac
  567.  
  568. host=`$ac_config_sub $host_alias`
  569. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  570. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  571. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  572. echo "$ac_t""$host" 1>&6
  573.  
  574. # Find a good install program.  We prefer a C program (faster),
  575. # so one script is as good as another.  But avoid the broken or
  576. # incompatible versions:
  577. # SysV /etc/install, /usr/sbin/install
  578. # SunOS /usr/etc/install
  579. # IRIX /sbin/install
  580. # AIX /bin/install
  581. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  582. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  583. # ./install, which can be erroneously created by make from ./install.sh.
  584. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  585. echo "configure:586: checking for a BSD compatible install" >&5
  586. if test -z "$INSTALL"; then
  587. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  588.   echo $ac_n "(cached) $ac_c" 1>&6
  589. else
  590.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  591.   for ac_dir in $PATH; do
  592.     # Account for people who put trailing slashes in PATH elements.
  593.     case "$ac_dir/" in
  594.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  595.     *)
  596.       # OSF1 and SCO ODT 3.0 have their own names for install.
  597.       for ac_prog in ginstall installbsd scoinst install; do
  598.         if test -f $ac_dir/$ac_prog; then
  599.       if test $ac_prog = install &&
  600.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  601.         # AIX install.  It has an incompatible calling convention.
  602.         # OSF/1 installbsd also uses dspmsg, but is usable.
  603.         :
  604.       else
  605.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  606.         break 2
  607.       fi
  608.     fi
  609.       done
  610.       ;;
  611.     esac
  612.   done
  613.   IFS="$ac_save_IFS"
  614.  
  615. fi
  616.   if test "${ac_cv_path_install+set}" = set; then
  617.     INSTALL="$ac_cv_path_install"
  618.   else
  619.     # As a last resort, use the slow shell script.  We don't cache a
  620.     # path for INSTALL within a source directory, because that will
  621.     # break other packages using the cache if that directory is
  622.     # removed, or if the path is relative.
  623.     INSTALL="$ac_install_sh"
  624.   fi
  625. fi
  626. echo "$ac_t""$INSTALL" 1>&6
  627.  
  628. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  629. # It thinks the first close brace ends the variable substitution.
  630. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  631.  
  632. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  633.  
  634. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  635. echo "configure:636: checking whether ln -s works" >&5
  636. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  637.   echo $ac_n "(cached) $ac_c" 1>&6
  638. else
  639.   rm -f conftestdata
  640. if ln -s X conftestdata 2>/dev/null
  641. then
  642.   rm -f conftestdata
  643.   ac_cv_prog_LN_S="ln -s"
  644. else
  645.   ac_cv_prog_LN_S=ln
  646. fi
  647. fi
  648. LN_S="$ac_cv_prog_LN_S"
  649. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  650.   echo "$ac_t""yes" 1>&6
  651. else
  652.   echo "$ac_t""no" 1>&6
  653. fi
  654.  
  655. # Extract the first word of "pod2man", so it can be a program name with args.
  656. set dummy pod2man; ac_word=$2
  657. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  658. echo "configure:659: checking for $ac_word" >&5
  659. if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
  660.   echo $ac_n "(cached) $ac_c" 1>&6
  661. else
  662.   if test -n "$POD2MAN"; then
  663.   ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
  664. else
  665.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  666.   for ac_dir in $PATH; do
  667.     test -z "$ac_dir" && ac_dir=.
  668.     if test -f $ac_dir/$ac_word; then
  669.       ac_cv_prog_POD2MAN="pod2man"
  670.       break
  671.     fi
  672.   done
  673.   IFS="$ac_save_ifs"
  674. fi
  675. fi
  676. POD2MAN="$ac_cv_prog_POD2MAN"
  677. if test -n "$POD2MAN"; then
  678.   echo "$ac_t""$POD2MAN" 1>&6
  679. else
  680.   echo "$ac_t""no" 1>&6
  681. fi
  682. # Extract the first word of "pod2html", so it can be a program name with args.
  683. set dummy pod2html; ac_word=$2
  684. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  685. echo "configure:686: checking for $ac_word" >&5
  686. if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
  687.   echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689.   if test -n "$POD2HTML"; then
  690.   ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
  691. else
  692.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  693.   for ac_dir in $PATH; do
  694.     test -z "$ac_dir" && ac_dir=.
  695.     if test -f $ac_dir/$ac_word; then
  696.       ac_cv_prog_POD2HTML="pod2html"
  697.       break
  698.     fi
  699.   done
  700.   IFS="$ac_save_ifs"
  701. fi
  702. fi
  703. POD2HTML="$ac_cv_prog_POD2HTML"
  704. if test -n "$POD2HTML"; then
  705.   echo "$ac_t""$POD2HTML" 1>&6
  706. else
  707.   echo "$ac_t""no" 1>&6
  708. fi
  709. # Extract the first word of "ranlib", so it can be a program name with args.
  710. set dummy ranlib; ac_word=$2
  711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  712. echo "configure:713: checking for $ac_word" >&5
  713. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  714.   echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716.   if test -n "$RANLIB"; then
  717.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  718. else
  719.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  720.   for ac_dir in $PATH; do
  721.     test -z "$ac_dir" && ac_dir=.
  722.     if test -f $ac_dir/$ac_word; then
  723.       ac_cv_prog_RANLIB="ranlib"
  724.       break
  725.     fi
  726.   done
  727.   IFS="$ac_save_ifs"
  728.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  729. fi
  730. fi
  731. RANLIB="$ac_cv_prog_RANLIB"
  732. if test -n "$RANLIB"; then
  733.   echo "$ac_t""$RANLIB" 1>&6
  734. else
  735.   echo "$ac_t""no" 1>&6
  736. fi
  737.  
  738. ARFLAGS="ruv"
  739. # Extract the first word of "gcc", so it can be a program name with args.
  740. set dummy gcc; ac_word=$2
  741. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  742. echo "configure:743: checking for $ac_word" >&5
  743. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  744.   echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746.   if test -n "$CC"; then
  747.   ac_cv_prog_CC="$CC" # Let the user override the test.
  748. else
  749.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  750.   for ac_dir in $PATH; do
  751.     test -z "$ac_dir" && ac_dir=.
  752.     if test -f $ac_dir/$ac_word; then
  753.       ac_cv_prog_CC="gcc"
  754.       break
  755.     fi
  756.   done
  757.   IFS="$ac_save_ifs"
  758. fi
  759. fi
  760. CC="$ac_cv_prog_CC"
  761. if test -n "$CC"; then
  762.   echo "$ac_t""$CC" 1>&6
  763. else
  764.   echo "$ac_t""no" 1>&6
  765. fi
  766.  
  767. if test -z "$CC"; then
  768.   # Extract the first word of "cc", so it can be a program name with args.
  769. set dummy cc; ac_word=$2
  770. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  771. echo "configure:772: checking for $ac_word" >&5
  772. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  773.   echo $ac_n "(cached) $ac_c" 1>&6
  774. else
  775.   if test -n "$CC"; then
  776.   ac_cv_prog_CC="$CC" # Let the user override the test.
  777. else
  778.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  779.   ac_prog_rejected=no
  780.   for ac_dir in $PATH; do
  781.     test -z "$ac_dir" && ac_dir=.
  782.     if test -f $ac_dir/$ac_word; then
  783.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  784.         ac_prog_rejected=yes
  785.     continue
  786.       fi
  787.       ac_cv_prog_CC="cc"
  788.       break
  789.     fi
  790.   done
  791.   IFS="$ac_save_ifs"
  792. if test $ac_prog_rejected = yes; then
  793.   # We found a bogon in the path, so make sure we never use it.
  794.   set dummy $ac_cv_prog_CC
  795.   shift
  796.   if test $# -gt 0; then
  797.     # We chose a different compiler from the bogus one.
  798.     # However, it has the same basename, so the bogon will be chosen
  799.     # first if we set CC to just the basename; use the full file name.
  800.     shift
  801.     set dummy "$ac_dir/$ac_word" "$@"
  802.     shift
  803.     ac_cv_prog_CC="$@"
  804.   fi
  805. fi
  806. fi
  807. fi
  808. CC="$ac_cv_prog_CC"
  809. if test -n "$CC"; then
  810.   echo "$ac_t""$CC" 1>&6
  811. else
  812.   echo "$ac_t""no" 1>&6
  813. fi
  814.  
  815.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  816. fi
  817.  
  818. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  819. echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  820.  
  821. ac_ext=c
  822. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  823. ac_cpp='$CPP $CPPFLAGS'
  824. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  825. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  826. cross_compiling=$ac_cv_prog_cc_cross
  827.  
  828. cat > conftest.$ac_ext <<EOF
  829. #line 830 "configure"
  830. #include "confdefs.h"
  831. main(){return(0);}
  832. EOF
  833. if { (eval echo configure:834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  834.   ac_cv_prog_cc_works=yes
  835.   # If we can't run a trivial program, we are probably using a cross compiler.
  836.   if (./conftest; exit) 2>/dev/null; then
  837.     ac_cv_prog_cc_cross=no
  838.   else
  839.     ac_cv_prog_cc_cross=yes
  840.   fi
  841. else
  842.   echo "configure: failed program was:" >&5
  843.   cat conftest.$ac_ext >&5
  844.   ac_cv_prog_cc_works=no
  845. fi
  846. rm -fr conftest*
  847.  
  848. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  849. if test $ac_cv_prog_cc_works = no; then
  850.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  851. fi
  852. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  853. echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  854. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  855. cross_compiling=$ac_cv_prog_cc_cross
  856.  
  857. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  858. echo "configure:859: checking whether we are using GNU C" >&5
  859. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  860.   echo $ac_n "(cached) $ac_c" 1>&6
  861. else
  862.   cat > conftest.c <<EOF
  863. #ifdef __GNUC__
  864.   yes;
  865. #endif
  866. EOF
  867. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  868.   ac_cv_prog_gcc=yes
  869. else
  870.   ac_cv_prog_gcc=no
  871. fi
  872. fi
  873.  
  874. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  875.  
  876. if test $ac_cv_prog_gcc = yes; then
  877.   GCC=yes
  878.   ac_test_CFLAGS="${CFLAGS+set}"
  879.   ac_save_CFLAGS="$CFLAGS"
  880.   CFLAGS=
  881.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  882. echo "configure:883: checking whether ${CC-cc} accepts -g" >&5
  883. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  884.   echo $ac_n "(cached) $ac_c" 1>&6
  885. else
  886.   echo 'void f(){}' > conftest.c
  887. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  888.   ac_cv_prog_cc_g=yes
  889. else
  890.   ac_cv_prog_cc_g=no
  891. fi
  892. rm -f conftest*
  893.  
  894. fi
  895.  
  896. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  897.   if test "$ac_test_CFLAGS" = set; then
  898.     CFLAGS="$ac_save_CFLAGS"
  899.   elif test $ac_cv_prog_cc_g = yes; then
  900.     CFLAGS="-g -O2"
  901.   else
  902.     CFLAGS="-O2"
  903.   fi
  904. else
  905.   GCC=
  906.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  907. fi
  908.  
  909. test "$CC" = "gcc" && SYS_CFLAGS="$SYS_CFLAGS -pipe -Wall"
  910. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  911. echo "configure:912: checking how to run the C preprocessor" >&5
  912. # On Suns, sometimes $CPP names a directory.
  913. if test -n "$CPP" && test -d "$CPP"; then
  914.   CPP=
  915. fi
  916. if test -z "$CPP"; then
  917. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  918.   echo $ac_n "(cached) $ac_c" 1>&6
  919. else
  920.     # This must be in double quotes, not single quotes, because CPP may get
  921.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  922.   CPP="${CC-cc} -E"
  923.   # On the NeXT, cc -E runs the code through the compiler's parser,
  924.   # not just through cpp.
  925.   cat > conftest.$ac_ext <<EOF
  926. #line 927 "configure"
  927. #include "confdefs.h"
  928. #include <assert.h>
  929. Syntax Error
  930. EOF
  931. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  932. { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  933. ac_err=`grep -v '^ *+' conftest.out`
  934. if test -z "$ac_err"; then
  935.   :
  936. else
  937.   echo "$ac_err" >&5
  938.   echo "configure: failed program was:" >&5
  939.   cat conftest.$ac_ext >&5
  940.   rm -rf conftest*
  941.   CPP="${CC-cc} -E -traditional-cpp"
  942.   cat > conftest.$ac_ext <<EOF
  943. #line 944 "configure"
  944. #include "confdefs.h"
  945. #include <assert.h>
  946. Syntax Error
  947. EOF
  948. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  949. { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  950. ac_err=`grep -v '^ *+' conftest.out`
  951. if test -z "$ac_err"; then
  952.   :
  953. else
  954.   echo "$ac_err" >&5
  955.   echo "configure: failed program was:" >&5
  956.   cat conftest.$ac_ext >&5
  957.   rm -rf conftest*
  958.   CPP=/lib/cpp
  959. fi
  960. rm -f conftest*
  961. fi
  962. rm -f conftest*
  963.   ac_cv_prog_CPP="$CPP"
  964. fi
  965.   CPP="$ac_cv_prog_CPP"
  966. else
  967.   ac_cv_prog_CPP="$CPP"
  968. fi
  969. echo "$ac_t""$CPP" 1>&6
  970.  
  971. # Query Brian Paul's database for compiling Mesa:
  972. case "$host" in
  973.   *-hp-hpux*)
  974.     SYS_CFLAGS="$SYS_CFLAGS -D_HPUX_SOURCE"
  975.     test "$CC" = "cc" || SYS_CFLAGS="$SYS_CFLAGS +O2 +Oall +Onolimit -Aa"
  976.     ;;
  977.   mips-sgi-irix4*)
  978.     test "$CC" = "cc" || SYS_CFLAGS="$SYS_CFLAGS -float"
  979.     ARFLAGS="rcv"
  980.     ;;
  981.   mips-sgi-irix5*)
  982.     # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  983.     test "$CC" = "cc" || \
  984.       SYS_CFLAGS="$SYS_CFLAGS -ansi -float"
  985.     ARFLAGS="rcv"
  986.     ;;
  987.   mips-sgi-irix6*)
  988.     #   1068 - integer conversion resulted in a change of sign
  989.     #   1069 - integer conversion resulted in truncation
  990.     #   1174 - variable was declared but never referenced
  991.     #   1185 - enumerated type mixed with another type
  992.     #   1209 - controlling expression is constant
  993.     #   1474 - declaring a void parameter list with a typedef is nonstandard
  994.     #   1552 - variable was set but never used
  995.     test "$CC" = "cc" || \
  996.       SYS_CFLAGS="$SYS_CFLAGS"
  997.     ARFLAGS="rcv"
  998.     ;;
  999.   *-linux*)
  1000.     SYS_CFLAGS="$SYS_CFLAGS -DSHM"
  1001.     SYS_LDFLAGS="$SYS_LDFLAGS"
  1002.     ;;
  1003.   *-netbsd*)
  1004.     ARFLAGS="rcv"
  1005.     ;;
  1006.   alpha-dec-osf*)
  1007.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -std1 -DSHM"
  1008.     ;;
  1009.   sparc-sun-solaris2*)
  1010.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -Xa"
  1011.     ;;
  1012.   *-ultrix*)
  1013.     test "$CC" = "gcc" || SYS_CFLAGS="$SYS_CFLAGS -Dconst=/**/"
  1014.     ARFLAGS="rusv"
  1015.     ;;
  1016. esac
  1017. # If we find X, set shell vars x_includes and x_libraries to the
  1018. # paths, otherwise set no_x=yes.
  1019. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1020. # --without-x overrides everything else, but does not touch the cache.
  1021. echo $ac_n "checking for X""... $ac_c" 1>&6
  1022. echo "configure:1023: checking for X" >&5
  1023.  
  1024. # Check whether --with-x or --without-x was given.
  1025. if test "${with_x+set}" = set; then
  1026.   withval="$with_x"
  1027.   :
  1028. fi
  1029.  
  1030. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  1031. if test "x$with_x" = xno; then
  1032.   # The user explicitly disabled X.
  1033.   have_x=disabled
  1034. else
  1035.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1036.     # Both variables are already set.
  1037.     have_x=yes
  1038.   else
  1039. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  1040.   echo $ac_n "(cached) $ac_c" 1>&6
  1041. else
  1042.   # One or both of the vars are not set, and there is no cached value.
  1043. ac_x_includes=NO ac_x_libraries=NO
  1044. rm -fr conftestdir
  1045. if mkdir conftestdir; then
  1046.   cd conftestdir
  1047.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1048.   cat > Imakefile <<'EOF'
  1049. acfindx:
  1050.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1051. EOF
  1052.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1053.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1054.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  1055.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1056.     for ac_extension in a so sl; do
  1057.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  1058.         test -f $ac_im_libdir/libX11.$ac_extension; then
  1059.         ac_im_usrlibdir=$ac_im_libdir; break
  1060.       fi
  1061.     done
  1062.     # Screen out bogus values from the imake configuration.  They are
  1063.     # bogus both because they are the default anyway, and because
  1064.     # using them would break gcc on systems where it needs fixed includes.
  1065.     case "$ac_im_incroot" in
  1066.     /usr/include) ;;
  1067.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  1068.     esac
  1069.     case "$ac_im_usrlibdir" in
  1070.     /usr/lib | /lib) ;;
  1071.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  1072.     esac
  1073.   fi
  1074.   cd ..
  1075.   rm -fr conftestdir
  1076. fi
  1077.  
  1078. if test "$ac_x_includes" = NO; then
  1079.   # Guess where to find include files, by looking for this one X11 .h file.
  1080.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1081.  
  1082.   # First, try using that file with no special directory specified.
  1083. cat > conftest.$ac_ext <<EOF
  1084. #line 1085 "configure"
  1085. #include "confdefs.h"
  1086. #include <$x_direct_test_include>
  1087. EOF
  1088. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1089. { (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1090. ac_err=`grep -v '^ *+' conftest.out`
  1091. if test -z "$ac_err"; then
  1092.   rm -rf conftest*
  1093.   # We can compile using X headers with no special include directory.
  1094. ac_x_includes=
  1095. else
  1096.   echo "$ac_err" >&5
  1097.   echo "configure: failed program was:" >&5
  1098.   cat conftest.$ac_ext >&5
  1099.   rm -rf conftest*
  1100.   # Look for the header file in a standard set of common directories.
  1101. # Check X11 before X11Rn because it is often a symlink to the current release.
  1102.   for ac_dir in               \
  1103.     /usr/X11/include          \
  1104.     /usr/X11R6/include        \
  1105.     /usr/X11R5/include        \
  1106.     /usr/X11R4/include        \
  1107.                               \
  1108.     /usr/include/X11          \
  1109.     /usr/include/X11R6        \
  1110.     /usr/include/X11R5        \
  1111.     /usr/include/X11R4        \
  1112.                               \
  1113.     /usr/local/X11/include    \
  1114.     /usr/local/X11R6/include  \
  1115.     /usr/local/X11R5/include  \
  1116.     /usr/local/X11R4/include  \
  1117.                               \
  1118.     /usr/local/include/X11    \
  1119.     /usr/local/include/X11R6  \
  1120.     /usr/local/include/X11R5  \
  1121.     /usr/local/include/X11R4  \
  1122.                               \
  1123.     /usr/X386/include         \
  1124.     /usr/x386/include         \
  1125.     /usr/XFree86/include/X11  \
  1126.                               \
  1127.     /usr/include              \
  1128.     /usr/local/include        \
  1129.     /usr/unsupported/include  \
  1130.     /usr/athena/include       \
  1131.     /usr/local/x11r5/include  \
  1132.     /usr/lpp/Xamples/include  \
  1133.                               \
  1134.     /usr/openwin/include      \
  1135.     /usr/openwin/share/include \
  1136.     ; \
  1137.   do
  1138.     if test -r "$ac_dir/$x_direct_test_include"; then
  1139.       ac_x_includes=$ac_dir
  1140.       break
  1141.     fi
  1142.   done
  1143. fi
  1144. rm -f conftest*
  1145. fi # $ac_x_includes = NO
  1146.  
  1147. if test "$ac_x_libraries" = NO; then
  1148.   # Check for the libraries.
  1149.  
  1150.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1151.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1152.  
  1153.   # See if we find them without any special options.
  1154.   # Don't add to $LIBS permanently.
  1155.   ac_save_LIBS="$LIBS"
  1156.   LIBS="-l$x_direct_test_library $LIBS"
  1157. cat > conftest.$ac_ext <<EOF
  1158. #line 1159 "configure"
  1159. #include "confdefs.h"
  1160.  
  1161. int main() {
  1162. ${x_direct_test_function}()
  1163. ; return 0; }
  1164. EOF
  1165. if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1166.   rm -rf conftest*
  1167.   LIBS="$ac_save_LIBS"
  1168. # We can link X programs with no special library path.
  1169. ac_x_libraries=
  1170. else
  1171.   echo "configure: failed program was:" >&5
  1172.   cat conftest.$ac_ext >&5
  1173.   rm -rf conftest*
  1174.   LIBS="$ac_save_LIBS"
  1175. # First see if replacing the include by lib works.
  1176. # Check X11 before X11Rn because it is often a symlink to the current release.
  1177. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1178.     /usr/X11/lib          \
  1179.     /usr/X11R6/lib        \
  1180.     /usr/X11R5/lib        \
  1181.     /usr/X11R4/lib        \
  1182.                           \
  1183.     /usr/lib/X11          \
  1184.     /usr/lib/X11R6        \
  1185.     /usr/lib/X11R5        \
  1186.     /usr/lib/X11R4        \
  1187.                           \
  1188.     /usr/local/X11/lib    \
  1189.     /usr/local/X11R6/lib  \
  1190.     /usr/local/X11R5/lib  \
  1191.     /usr/local/X11R4/lib  \
  1192.                           \
  1193.     /usr/local/lib/X11    \
  1194.     /usr/local/lib/X11R6  \
  1195.     /usr/local/lib/X11R5  \
  1196.     /usr/local/lib/X11R4  \
  1197.                           \
  1198.     /usr/X386/lib         \
  1199.     /usr/x386/lib         \
  1200.     /usr/XFree86/lib/X11  \
  1201.                           \
  1202.     /usr/lib              \
  1203.     /usr/local/lib        \
  1204.     /usr/unsupported/lib  \
  1205.     /usr/athena/lib       \
  1206.     /usr/local/x11r5/lib  \
  1207.     /usr/lpp/Xamples/lib  \
  1208.     /lib/usr/lib/X11      \
  1209.                           \
  1210.     /usr/openwin/lib      \
  1211.     /usr/openwin/share/lib \
  1212.     ; \
  1213. do
  1214.   for ac_extension in a so sl; do
  1215.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1216.       ac_x_libraries=$ac_dir
  1217.       break 2
  1218.     fi
  1219.   done
  1220. done
  1221. fi
  1222. rm -f conftest*
  1223. fi # $ac_x_libraries = NO
  1224.  
  1225. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  1226.   # Didn't find X anywhere.  Cache the known absence of X.
  1227.   ac_cv_have_x="have_x=no"
  1228. else
  1229.   # Record where we found X for the cache.
  1230.   ac_cv_have_x="have_x=yes \
  1231.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1232. fi
  1233. fi
  1234.   fi
  1235.   eval "$ac_cv_have_x"
  1236. fi # $with_x != no
  1237.  
  1238. if test "$have_x" != yes; then
  1239.   echo "$ac_t""$have_x" 1>&6
  1240.   no_x=yes
  1241. else
  1242.   # If each of the values was on the command line, it overrides each guess.
  1243.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1244.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1245.   # Update the cache value to reflect the command line values.
  1246.   ac_cv_have_x="have_x=yes \
  1247.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1248.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1249. fi
  1250.  
  1251. if test "$no_x" = yes; then
  1252.   # Not all programs may use this symbol, but it does not hurt to define it.
  1253.   cat >> confdefs.h <<\EOF
  1254. #define X_DISPLAY_MISSING 1
  1255. EOF
  1256.  
  1257.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  1258. else
  1259.   if test -n "$x_includes"; then
  1260.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1261.   fi
  1262.  
  1263.   # It would also be nice to do this for all -L options, not just this one.
  1264.   if test -n "$x_libraries"; then
  1265.     X_LIBS="$X_LIBS -L$x_libraries"
  1266.     # For Solaris; some versions of Sun CC require a space after -R and
  1267.     # others require no space.  Words are not sufficient . . . .
  1268.     case "`(uname -sr) 2>/dev/null`" in
  1269.     "SunOS 5"*)
  1270.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  1271. echo "configure:1272: checking whether -R must be followed by a space" >&5
  1272.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  1273.       cat > conftest.$ac_ext <<EOF
  1274. #line 1275 "configure"
  1275. #include "confdefs.h"
  1276.  
  1277. int main() {
  1278.  
  1279. ; return 0; }
  1280. EOF
  1281. if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1282.   rm -rf conftest*
  1283.   ac_R_nospace=yes
  1284. else
  1285.   echo "configure: failed program was:" >&5
  1286.   cat conftest.$ac_ext >&5
  1287.   rm -rf conftest*
  1288.   ac_R_nospace=no
  1289. fi
  1290. rm -f conftest*
  1291.       if test $ac_R_nospace = yes; then
  1292.     echo "$ac_t""no" 1>&6
  1293.     X_LIBS="$X_LIBS -R$x_libraries"
  1294.       else
  1295.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  1296.     cat > conftest.$ac_ext <<EOF
  1297. #line 1298 "configure"
  1298. #include "confdefs.h"
  1299.  
  1300. int main() {
  1301.  
  1302. ; return 0; }
  1303. EOF
  1304. if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1305.   rm -rf conftest*
  1306.   ac_R_space=yes
  1307. else
  1308.   echo "configure: failed program was:" >&5
  1309.   cat conftest.$ac_ext >&5
  1310.   rm -rf conftest*
  1311.   ac_R_space=no
  1312. fi
  1313. rm -f conftest*
  1314.     if test $ac_R_space = yes; then
  1315.       echo "$ac_t""yes" 1>&6
  1316.       X_LIBS="$X_LIBS -R $x_libraries"
  1317.     else
  1318.       echo "$ac_t""neither works" 1>&6
  1319.     fi
  1320.       fi
  1321.       LIBS="$ac_xsave_LIBS"
  1322.     esac
  1323.   fi
  1324.  
  1325.   # Check for system-dependent libraries X programs must link with.
  1326.   # Do this before checking for the system-independent R6 libraries
  1327.   # (-lICE), since we may need -lsocket or whatever for X linking.
  1328.  
  1329.   if test "$ISC" = yes; then
  1330.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1331.   else
  1332.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1333.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1334.     # the Alpha needs dnet_stub (dnet does not exist).
  1335.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  1336. echo "configure:1337: checking for dnet_ntoa in -ldnet" >&5
  1337. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1338. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1339.   echo $ac_n "(cached) $ac_c" 1>&6
  1340. else
  1341.   ac_save_LIBS="$LIBS"
  1342. LIBS="-ldnet  $LIBS"
  1343. cat > conftest.$ac_ext <<EOF
  1344. #line 1345 "configure"
  1345. #include "confdefs.h"
  1346. /* Override any gcc2 internal prototype to avoid an error.  */
  1347. /* We use char because int might match the return type of a gcc2
  1348.     builtin and then its argument prototype would still apply.  */
  1349. char dnet_ntoa();
  1350.  
  1351. int main() {
  1352. dnet_ntoa()
  1353. ; return 0; }
  1354. EOF
  1355. if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1356.   rm -rf conftest*
  1357.   eval "ac_cv_lib_$ac_lib_var=yes"
  1358. else
  1359.   echo "configure: failed program was:" >&5
  1360.   cat conftest.$ac_ext >&5
  1361.   rm -rf conftest*
  1362.   eval "ac_cv_lib_$ac_lib_var=no"
  1363. fi
  1364. rm -f conftest*
  1365. LIBS="$ac_save_LIBS"
  1366.  
  1367. fi
  1368. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1369.   echo "$ac_t""yes" 1>&6
  1370.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1371. else
  1372.   echo "$ac_t""no" 1>&6
  1373. fi
  1374.  
  1375.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1376.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  1377. echo "configure:1378: checking for dnet_ntoa in -ldnet_stub" >&5
  1378. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1379. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1380.   echo $ac_n "(cached) $ac_c" 1>&6
  1381. else
  1382.   ac_save_LIBS="$LIBS"
  1383. LIBS="-ldnet_stub  $LIBS"
  1384. cat > conftest.$ac_ext <<EOF
  1385. #line 1386 "configure"
  1386. #include "confdefs.h"
  1387. /* Override any gcc2 internal prototype to avoid an error.  */
  1388. /* We use char because int might match the return type of a gcc2
  1389.     builtin and then its argument prototype would still apply.  */
  1390. char dnet_ntoa();
  1391.  
  1392. int main() {
  1393. dnet_ntoa()
  1394. ; return 0; }
  1395. EOF
  1396. if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1397.   rm -rf conftest*
  1398.   eval "ac_cv_lib_$ac_lib_var=yes"
  1399. else
  1400.   echo "configure: failed program was:" >&5
  1401.   cat conftest.$ac_ext >&5
  1402.   rm -rf conftest*
  1403.   eval "ac_cv_lib_$ac_lib_var=no"
  1404. fi
  1405. rm -f conftest*
  1406. LIBS="$ac_save_LIBS"
  1407.  
  1408. fi
  1409. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1410.   echo "$ac_t""yes" 1>&6
  1411.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1412. else
  1413.   echo "$ac_t""no" 1>&6
  1414. fi
  1415.  
  1416.     fi
  1417.  
  1418.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1419.     # to get the SysV transport functions.
  1420.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  1421.     # needs -lnsl.
  1422.     # The nsl library prevents programs from opening the X display
  1423.     # on Irix 5.2, according to dickey@clark.net.
  1424.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1425. echo "configure:1426: checking for gethostbyname" >&5
  1426. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1427.   echo $ac_n "(cached) $ac_c" 1>&6
  1428. else
  1429.   cat > conftest.$ac_ext <<EOF
  1430. #line 1431 "configure"
  1431. #include "confdefs.h"
  1432. /* System header to define __stub macros and hopefully few prototypes,
  1433.     which can conflict with char gethostbyname(); below.  */
  1434. #include <assert.h>
  1435. /* Override any gcc2 internal prototype to avoid an error.  */
  1436. /* We use char because int might match the return type of a gcc2
  1437.     builtin and then its argument prototype would still apply.  */
  1438. char gethostbyname();
  1439.  
  1440. int main() {
  1441.  
  1442. /* The GNU C library defines this for functions which it implements
  1443.     to always fail with ENOSYS.  Some functions are actually named
  1444.     something starting with __ and the normal name is an alias.  */
  1445. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1446. choke me
  1447. #else
  1448. gethostbyname();
  1449. #endif
  1450.  
  1451. ; return 0; }
  1452. EOF
  1453. if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1454.   rm -rf conftest*
  1455.   eval "ac_cv_func_gethostbyname=yes"
  1456. else
  1457.   echo "configure: failed program was:" >&5
  1458.   cat conftest.$ac_ext >&5
  1459.   rm -rf conftest*
  1460.   eval "ac_cv_func_gethostbyname=no"
  1461. fi
  1462. rm -f conftest*
  1463. fi
  1464.  
  1465. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1466.   echo "$ac_t""yes" 1>&6
  1467.   :
  1468. else
  1469.   echo "$ac_t""no" 1>&6
  1470. fi
  1471.  
  1472.     if test $ac_cv_func_gethostbyname = no; then
  1473.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1474. echo "configure:1475: checking for gethostbyname in -lnsl" >&5
  1475. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1476. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1477.   echo $ac_n "(cached) $ac_c" 1>&6
  1478. else
  1479.   ac_save_LIBS="$LIBS"
  1480. LIBS="-lnsl  $LIBS"
  1481. cat > conftest.$ac_ext <<EOF
  1482. #line 1483 "configure"
  1483. #include "confdefs.h"
  1484. /* Override any gcc2 internal prototype to avoid an error.  */
  1485. /* We use char because int might match the return type of a gcc2
  1486.     builtin and then its argument prototype would still apply.  */
  1487. char gethostbyname();
  1488.  
  1489. int main() {
  1490. gethostbyname()
  1491. ; return 0; }
  1492. EOF
  1493. if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1494.   rm -rf conftest*
  1495.   eval "ac_cv_lib_$ac_lib_var=yes"
  1496. else
  1497.   echo "configure: failed program was:" >&5
  1498.   cat conftest.$ac_ext >&5
  1499.   rm -rf conftest*
  1500.   eval "ac_cv_lib_$ac_lib_var=no"
  1501. fi
  1502. rm -f conftest*
  1503. LIBS="$ac_save_LIBS"
  1504.  
  1505. fi
  1506. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1507.   echo "$ac_t""yes" 1>&6
  1508.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1509. else
  1510.   echo "$ac_t""no" 1>&6
  1511. fi
  1512.  
  1513.     fi
  1514.  
  1515.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1516.     # socket/setsockopt and other routines are undefined under SCO ODT
  1517.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  1518.     # on later versions), says simon@lia.di.epfl.ch: it contains
  1519.     # gethostby* variants that don't use the nameserver (or something).
  1520.     # -lsocket must be given before -lnsl if both are needed.
  1521.     # We assume that if connect needs -lnsl, so does gethostbyname.
  1522.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  1523. echo "configure:1524: checking for connect" >&5
  1524. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  1525.   echo $ac_n "(cached) $ac_c" 1>&6
  1526. else
  1527.   cat > conftest.$ac_ext <<EOF
  1528. #line 1529 "configure"
  1529. #include "confdefs.h"
  1530. /* System header to define __stub macros and hopefully few prototypes,
  1531.     which can conflict with char connect(); below.  */
  1532. #include <assert.h>
  1533. /* Override any gcc2 internal prototype to avoid an error.  */
  1534. /* We use char because int might match the return type of a gcc2
  1535.     builtin and then its argument prototype would still apply.  */
  1536. char connect();
  1537.  
  1538. int main() {
  1539.  
  1540. /* The GNU C library defines this for functions which it implements
  1541.     to always fail with ENOSYS.  Some functions are actually named
  1542.     something starting with __ and the normal name is an alias.  */
  1543. #if defined (__stub_connect) || defined (__stub___connect)
  1544. choke me
  1545. #else
  1546. connect();
  1547. #endif
  1548.  
  1549. ; return 0; }
  1550. EOF
  1551. if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1552.   rm -rf conftest*
  1553.   eval "ac_cv_func_connect=yes"
  1554. else
  1555.   echo "configure: failed program was:" >&5
  1556.   cat conftest.$ac_ext >&5
  1557.   rm -rf conftest*
  1558.   eval "ac_cv_func_connect=no"
  1559. fi
  1560. rm -f conftest*
  1561. fi
  1562.  
  1563. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  1564.   echo "$ac_t""yes" 1>&6
  1565.   :
  1566. else
  1567.   echo "$ac_t""no" 1>&6
  1568. fi
  1569.  
  1570.     if test $ac_cv_func_connect = no; then
  1571.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  1572. echo "configure:1573: checking for connect in -lsocket" >&5
  1573. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  1574. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1575.   echo $ac_n "(cached) $ac_c" 1>&6
  1576. else
  1577.   ac_save_LIBS="$LIBS"
  1578. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  1579. cat > conftest.$ac_ext <<EOF
  1580. #line 1581 "configure"
  1581. #include "confdefs.h"
  1582. /* Override any gcc2 internal prototype to avoid an error.  */
  1583. /* We use char because int might match the return type of a gcc2
  1584.     builtin and then its argument prototype would still apply.  */
  1585. char connect();
  1586.  
  1587. int main() {
  1588. connect()
  1589. ; return 0; }
  1590. EOF
  1591. if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1592.   rm -rf conftest*
  1593.   eval "ac_cv_lib_$ac_lib_var=yes"
  1594. else
  1595.   echo "configure: failed program was:" >&5
  1596.   cat conftest.$ac_ext >&5
  1597.   rm -rf conftest*
  1598.   eval "ac_cv_lib_$ac_lib_var=no"
  1599. fi
  1600. rm -f conftest*
  1601. LIBS="$ac_save_LIBS"
  1602.  
  1603. fi
  1604. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1605.   echo "$ac_t""yes" 1>&6
  1606.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  1607. else
  1608.   echo "$ac_t""no" 1>&6
  1609. fi
  1610.  
  1611.     fi
  1612.  
  1613.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  1614.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  1615. echo "configure:1616: checking for remove" >&5
  1616. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  1617.   echo $ac_n "(cached) $ac_c" 1>&6
  1618. else
  1619.   cat > conftest.$ac_ext <<EOF
  1620. #line 1621 "configure"
  1621. #include "confdefs.h"
  1622. /* System header to define __stub macros and hopefully few prototypes,
  1623.     which can conflict with char remove(); below.  */
  1624. #include <assert.h>
  1625. /* Override any gcc2 internal prototype to avoid an error.  */
  1626. /* We use char because int might match the return type of a gcc2
  1627.     builtin and then its argument prototype would still apply.  */
  1628. char remove();
  1629.  
  1630. int main() {
  1631.  
  1632. /* The GNU C library defines this for functions which it implements
  1633.     to always fail with ENOSYS.  Some functions are actually named
  1634.     something starting with __ and the normal name is an alias.  */
  1635. #if defined (__stub_remove) || defined (__stub___remove)
  1636. choke me
  1637. #else
  1638. remove();
  1639. #endif
  1640.  
  1641. ; return 0; }
  1642. EOF
  1643. if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1644.   rm -rf conftest*
  1645.   eval "ac_cv_func_remove=yes"
  1646. else
  1647.   echo "configure: failed program was:" >&5
  1648.   cat conftest.$ac_ext >&5
  1649.   rm -rf conftest*
  1650.   eval "ac_cv_func_remove=no"
  1651. fi
  1652. rm -f conftest*
  1653. fi
  1654.  
  1655. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  1656.   echo "$ac_t""yes" 1>&6
  1657.   :
  1658. else
  1659.   echo "$ac_t""no" 1>&6
  1660. fi
  1661.  
  1662.     if test $ac_cv_func_remove = no; then
  1663.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  1664. echo "configure:1665: checking for remove in -lposix" >&5
  1665. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  1666. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1667.   echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669.   ac_save_LIBS="$LIBS"
  1670. LIBS="-lposix  $LIBS"
  1671. cat > conftest.$ac_ext <<EOF
  1672. #line 1673 "configure"
  1673. #include "confdefs.h"
  1674. /* Override any gcc2 internal prototype to avoid an error.  */
  1675. /* We use char because int might match the return type of a gcc2
  1676.     builtin and then its argument prototype would still apply.  */
  1677. char remove();
  1678.  
  1679. int main() {
  1680. remove()
  1681. ; return 0; }
  1682. EOF
  1683. if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1684.   rm -rf conftest*
  1685.   eval "ac_cv_lib_$ac_lib_var=yes"
  1686. else
  1687.   echo "configure: failed program was:" >&5
  1688.   cat conftest.$ac_ext >&5
  1689.   rm -rf conftest*
  1690.   eval "ac_cv_lib_$ac_lib_var=no"
  1691. fi
  1692. rm -f conftest*
  1693. LIBS="$ac_save_LIBS"
  1694.  
  1695. fi
  1696. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1697.   echo "$ac_t""yes" 1>&6
  1698.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  1699. else
  1700.   echo "$ac_t""no" 1>&6
  1701. fi
  1702.  
  1703.     fi
  1704.  
  1705.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  1706.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  1707. echo "configure:1708: checking for shmat" >&5
  1708. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  1709.   echo $ac_n "(cached) $ac_c" 1>&6
  1710. else
  1711.   cat > conftest.$ac_ext <<EOF
  1712. #line 1713 "configure"
  1713. #include "confdefs.h"
  1714. /* System header to define __stub macros and hopefully few prototypes,
  1715.     which can conflict with char shmat(); below.  */
  1716. #include <assert.h>
  1717. /* Override any gcc2 internal prototype to avoid an error.  */
  1718. /* We use char because int might match the return type of a gcc2
  1719.     builtin and then its argument prototype would still apply.  */
  1720. char shmat();
  1721.  
  1722. int main() {
  1723.  
  1724. /* The GNU C library defines this for functions which it implements
  1725.     to always fail with ENOSYS.  Some functions are actually named
  1726.     something starting with __ and the normal name is an alias.  */
  1727. #if defined (__stub_shmat) || defined (__stub___shmat)
  1728. choke me
  1729. #else
  1730. shmat();
  1731. #endif
  1732.  
  1733. ; return 0; }
  1734. EOF
  1735. if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1736.   rm -rf conftest*
  1737.   eval "ac_cv_func_shmat=yes"
  1738. else
  1739.   echo "configure: failed program was:" >&5
  1740.   cat conftest.$ac_ext >&5
  1741.   rm -rf conftest*
  1742.   eval "ac_cv_func_shmat=no"
  1743. fi
  1744. rm -f conftest*
  1745. fi
  1746.  
  1747. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  1748.   echo "$ac_t""yes" 1>&6
  1749.   :
  1750. else
  1751.   echo "$ac_t""no" 1>&6
  1752. fi
  1753.  
  1754.     if test $ac_cv_func_shmat = no; then
  1755.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  1756. echo "configure:1757: checking for shmat in -lipc" >&5
  1757. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  1758. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1759.   echo $ac_n "(cached) $ac_c" 1>&6
  1760. else
  1761.   ac_save_LIBS="$LIBS"
  1762. LIBS="-lipc  $LIBS"
  1763. cat > conftest.$ac_ext <<EOF
  1764. #line 1765 "configure"
  1765. #include "confdefs.h"
  1766. /* Override any gcc2 internal prototype to avoid an error.  */
  1767. /* We use char because int might match the return type of a gcc2
  1768.     builtin and then its argument prototype would still apply.  */
  1769. char shmat();
  1770.  
  1771. int main() {
  1772. shmat()
  1773. ; return 0; }
  1774. EOF
  1775. if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1776.   rm -rf conftest*
  1777.   eval "ac_cv_lib_$ac_lib_var=yes"
  1778. else
  1779.   echo "configure: failed program was:" >&5
  1780.   cat conftest.$ac_ext >&5
  1781.   rm -rf conftest*
  1782.   eval "ac_cv_lib_$ac_lib_var=no"
  1783. fi
  1784. rm -f conftest*
  1785. LIBS="$ac_save_LIBS"
  1786.  
  1787. fi
  1788. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1789.   echo "$ac_t""yes" 1>&6
  1790.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  1791. else
  1792.   echo "$ac_t""no" 1>&6
  1793. fi
  1794.  
  1795.     fi
  1796.   fi
  1797.  
  1798.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1799.   ac_save_LDFLAGS="$LDFLAGS"
  1800.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  1801.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1802.   # check for ICE first), but we must link in the order -lSM -lICE or
  1803.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1804.   # These have to be linked with before -lX11, unlike the other
  1805.   # libraries we check for below, so use a different variable.
  1806.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1807.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  1808. echo "configure:1809: checking for IceConnectionNumber in -lICE" >&5
  1809. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  1810. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1811.   echo $ac_n "(cached) $ac_c" 1>&6
  1812. else
  1813.   ac_save_LIBS="$LIBS"
  1814. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  1815. cat > conftest.$ac_ext <<EOF
  1816. #line 1817 "configure"
  1817. #include "confdefs.h"
  1818. /* Override any gcc2 internal prototype to avoid an error.  */
  1819. /* We use char because int might match the return type of a gcc2
  1820.     builtin and then its argument prototype would still apply.  */
  1821. char IceConnectionNumber();
  1822.  
  1823. int main() {
  1824. IceConnectionNumber()
  1825. ; return 0; }
  1826. EOF
  1827. if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1828.   rm -rf conftest*
  1829.   eval "ac_cv_lib_$ac_lib_var=yes"
  1830. else
  1831.   echo "configure: failed program was:" >&5
  1832.   cat conftest.$ac_ext >&5
  1833.   rm -rf conftest*
  1834.   eval "ac_cv_lib_$ac_lib_var=no"
  1835. fi
  1836. rm -f conftest*
  1837. LIBS="$ac_save_LIBS"
  1838.  
  1839. fi
  1840. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1841.   echo "$ac_t""yes" 1>&6
  1842.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1843. else
  1844.   echo "$ac_t""no" 1>&6
  1845. fi
  1846.  
  1847.   LDFLAGS="$ac_save_LDFLAGS"
  1848.  
  1849. fi
  1850.  
  1851. # It has been reported that some vendors don't ship libXmu.
  1852. # Allow to compile a stripped down widget set w/o the colormap functions.
  1853. if test -n "$x_libraries"; then
  1854.   ac_save_LDFLAGS="$LDFLAGS"
  1855.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1856.   echo $ac_n "checking for XmuRegisterExternalAgent in -lXmu""... $ac_c" 1>&6
  1857. echo "configure:1858: checking for XmuRegisterExternalAgent in -lXmu" >&5
  1858. ac_lib_var=`echo Xmu'_'XmuRegisterExternalAgent | sed 'y%./+-%__p_%'`
  1859. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1860.   echo $ac_n "(cached) $ac_c" 1>&6
  1861. else
  1862.   ac_save_LIBS="$LIBS"
  1863. LIBS="-lXmu $X_EXTRA_LIBS $LIBS"
  1864. cat > conftest.$ac_ext <<EOF
  1865. #line 1866 "configure"
  1866. #include "confdefs.h"
  1867. /* Override any gcc2 internal prototype to avoid an error.  */
  1868. /* We use char because int might match the return type of a gcc2
  1869.     builtin and then its argument prototype would still apply.  */
  1870. char XmuRegisterExternalAgent();
  1871.  
  1872. int main() {
  1873. XmuRegisterExternalAgent()
  1874. ; return 0; }
  1875. EOF
  1876. if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1877.   rm -rf conftest*
  1878.   eval "ac_cv_lib_$ac_lib_var=yes"
  1879. else
  1880.   echo "configure: failed program was:" >&5
  1881.   cat conftest.$ac_ext >&5
  1882.   rm -rf conftest*
  1883.   eval "ac_cv_lib_$ac_lib_var=no"
  1884. fi
  1885. rm -f conftest*
  1886. LIBS="$ac_save_LIBS"
  1887.  
  1888. fi
  1889. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1890.   echo "$ac_t""yes" 1>&6
  1891.   XMU_LIB="-lXmu"; cat >> confdefs.h <<\EOF
  1892. #define HAVE_XMU 1
  1893. EOF
  1894.  
  1895. else
  1896.   echo "$ac_t""no" 1>&6
  1897. fi
  1898.  
  1899.   LDFLAGS="$ac_save_LDFLAGS"
  1900. fi
  1901.  
  1902.  
  1903. # Some vendors don't ship libXaw.
  1904. if test -n "$x_libraries"; then
  1905.   ac_save_LDFLAGS="$LDFLAGS"
  1906.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1907.   echo $ac_n "checking for XawInitializeWidgetSet in -lXaw""... $ac_c" 1>&6
  1908. echo "configure:1909: checking for XawInitializeWidgetSet in -lXaw" >&5
  1909. ac_lib_var=`echo Xaw'_'XawInitializeWidgetSet | sed 'y%./+-%__p_%'`
  1910. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1911.   echo $ac_n "(cached) $ac_c" 1>&6
  1912. else
  1913.   ac_save_LIBS="$LIBS"
  1914. LIBS="-lXaw $XMU_LIB -lXt -lX11 $X_EXTRA_LIBS $LIBS"
  1915. cat > conftest.$ac_ext <<EOF
  1916. #line 1917 "configure"
  1917. #include "confdefs.h"
  1918. /* Override any gcc2 internal prototype to avoid an error.  */
  1919. /* We use char because int might match the return type of a gcc2
  1920.     builtin and then its argument prototype would still apply.  */
  1921. char XawInitializeWidgetSet();
  1922.  
  1923. int main() {
  1924. XawInitializeWidgetSet()
  1925. ; return 0; }
  1926. EOF
  1927. if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1928.   rm -rf conftest*
  1929.   eval "ac_cv_lib_$ac_lib_var=yes"
  1930. else
  1931.   echo "configure: failed program was:" >&5
  1932.   cat conftest.$ac_ext >&5
  1933.   rm -rf conftest*
  1934.   eval "ac_cv_lib_$ac_lib_var=no"
  1935. fi
  1936. rm -f conftest*
  1937. LIBS="$ac_save_LIBS"
  1938.  
  1939. fi
  1940. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1941.   echo "$ac_t""yes" 1>&6
  1942.   XAW_LIB="-lXaw"
  1943.                 cat >> confdefs.h <<\EOF
  1944. #define HAVE_XAW 1
  1945. EOF
  1946.  
  1947.                 XAW_DEMOS="cube mcube ed tea"
  1948. else
  1949.   echo "$ac_t""no" 1>&6
  1950. XAW_DEMOS=
  1951. fi
  1952.  
  1953.   LDFLAGS="$ac_save_LDFLAGS"
  1954. fi
  1955.  
  1956.  
  1957.  
  1958. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1959. echo "configure:1960: checking for ANSI C header files" >&5
  1960. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1961.   echo $ac_n "(cached) $ac_c" 1>&6
  1962. else
  1963.   cat > conftest.$ac_ext <<EOF
  1964. #line 1965 "configure"
  1965. #include "confdefs.h"
  1966. #include <stdlib.h>
  1967. #include <stdarg.h>
  1968. #include <string.h>
  1969. #include <float.h>
  1970. EOF
  1971. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1972. { (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1973. ac_err=`grep -v '^ *+' conftest.out`
  1974. if test -z "$ac_err"; then
  1975.   rm -rf conftest*
  1976.   ac_cv_header_stdc=yes
  1977. else
  1978.   echo "$ac_err" >&5
  1979.   echo "configure: failed program was:" >&5
  1980.   cat conftest.$ac_ext >&5
  1981.   rm -rf conftest*
  1982.   ac_cv_header_stdc=no
  1983. fi
  1984. rm -f conftest*
  1985.  
  1986. if test $ac_cv_header_stdc = yes; then
  1987.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1988. cat > conftest.$ac_ext <<EOF
  1989. #line 1990 "configure"
  1990. #include "confdefs.h"
  1991. #include <string.h>
  1992. EOF
  1993. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1994.   egrep "memchr" >/dev/null 2>&1; then
  1995.   :
  1996. else
  1997.   rm -rf conftest*
  1998.   ac_cv_header_stdc=no
  1999. fi
  2000. rm -f conftest*
  2001.  
  2002. fi
  2003.  
  2004. if test $ac_cv_header_stdc = yes; then
  2005.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2006. cat > conftest.$ac_ext <<EOF
  2007. #line 2008 "configure"
  2008. #include "confdefs.h"
  2009. #include <stdlib.h>
  2010. EOF
  2011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2012.   egrep "free" >/dev/null 2>&1; then
  2013.   :
  2014. else
  2015.   rm -rf conftest*
  2016.   ac_cv_header_stdc=no
  2017. fi
  2018. rm -f conftest*
  2019.  
  2020. fi
  2021.  
  2022. if test $ac_cv_header_stdc = yes; then
  2023.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2024. if test "$cross_compiling" = yes; then
  2025.   :
  2026. else
  2027.   cat > conftest.$ac_ext <<EOF
  2028. #line 2029 "configure"
  2029. #include "confdefs.h"
  2030. #include <ctype.h>
  2031. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2032. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2033. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2034. int main () { int i; for (i = 0; i < 256; i++)
  2035. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2036. exit (0); }
  2037.  
  2038. EOF
  2039. if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2040. then
  2041.   :
  2042. else
  2043.   echo "configure: failed program was:" >&5
  2044.   cat conftest.$ac_ext >&5
  2045.   rm -fr conftest*
  2046.   ac_cv_header_stdc=no
  2047. fi
  2048. rm -fr conftest*
  2049. fi
  2050.  
  2051. fi
  2052. fi
  2053.  
  2054. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2055. if test $ac_cv_header_stdc = yes; then
  2056.   cat >> confdefs.h <<\EOF
  2057. #define STDC_HEADERS 1
  2058. EOF
  2059.  
  2060. fi
  2061.  
  2062. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2063. echo "configure:2064: checking for working const" >&5
  2064. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2065.   echo $ac_n "(cached) $ac_c" 1>&6
  2066. else
  2067.   cat > conftest.$ac_ext <<EOF
  2068. #line 2069 "configure"
  2069. #include "confdefs.h"
  2070.  
  2071. int main() {
  2072.  
  2073. /* Ultrix mips cc rejects this.  */
  2074. typedef int charset[2]; const charset x;
  2075. /* SunOS 4.1.1 cc rejects this.  */
  2076. char const *const *ccp;
  2077. char **p;
  2078. /* NEC SVR4.0.2 mips cc rejects this.  */
  2079. struct point {int x, y;};
  2080. static struct point const zero = {0,0};
  2081. /* AIX XL C 1.02.0.0 rejects this.
  2082.    It does not let you subtract one const X* pointer from another in an arm
  2083.    of an if-expression whose if-part is not a constant expression */
  2084. const char *g = "string";
  2085. ccp = &g + (g ? g-g : 0);
  2086. /* HPUX 7.0 cc rejects these. */
  2087. ++ccp;
  2088. p = (char**) ccp;
  2089. ccp = (char const *const *) p;
  2090. { /* SCO 3.2v4 cc rejects this.  */
  2091.   char *t;
  2092.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2093.  
  2094.   *t++ = 0;
  2095. }
  2096. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2097.   int x[] = {25, 17};
  2098.   const int *foo = &x[0];
  2099.   ++foo;
  2100. }
  2101. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2102.   typedef const int *iptr;
  2103.   iptr p = 0;
  2104.   ++p;
  2105. }
  2106. { /* AIX XL C 1.02.0.0 rejects this saying
  2107.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2108.   struct s { int j; const int *ap[3]; };
  2109.   struct s *b; b->j = 5;
  2110. }
  2111. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2112.   const int foo = 10;
  2113. }
  2114.  
  2115. ; return 0; }
  2116. EOF
  2117. if { (eval echo configure:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2118.   rm -rf conftest*
  2119.   ac_cv_c_const=yes
  2120. else
  2121.   echo "configure: failed program was:" >&5
  2122.   cat conftest.$ac_ext >&5
  2123.   rm -rf conftest*
  2124.   ac_cv_c_const=no
  2125. fi
  2126. rm -f conftest*
  2127. fi
  2128.  
  2129. echo "$ac_t""$ac_cv_c_const" 1>&6
  2130. if test $ac_cv_c_const = no; then
  2131.   cat >> confdefs.h <<\EOF
  2132. #define const 
  2133. EOF
  2134.  
  2135. fi
  2136.  
  2137. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2138. echo "configure:2139: checking for inline" >&5
  2139. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2140.   echo $ac_n "(cached) $ac_c" 1>&6
  2141. else
  2142.   ac_cv_c_inline=no
  2143. for ac_kw in inline __inline__ __inline; do
  2144.   cat > conftest.$ac_ext <<EOF
  2145. #line 2146 "configure"
  2146. #include "confdefs.h"
  2147.  
  2148. int main() {
  2149. } $ac_kw foo() {
  2150. ; return 0; }
  2151. EOF
  2152. if { (eval echo configure:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2153.   rm -rf conftest*
  2154.   ac_cv_c_inline=$ac_kw; break
  2155. else
  2156.   echo "configure: failed program was:" >&5
  2157.   cat conftest.$ac_ext >&5
  2158. fi
  2159. rm -f conftest*
  2160. done
  2161.  
  2162. fi
  2163.  
  2164. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2165. case "$ac_cv_c_inline" in
  2166.   inline | yes) ;;
  2167.   no) cat >> confdefs.h <<\EOF
  2168. #define inline 
  2169. EOF
  2170.  ;;
  2171.   *)  cat >> confdefs.h <<EOF
  2172. #define inline $ac_cv_c_inline
  2173. EOF
  2174.  ;;
  2175. esac
  2176.  
  2177. for ac_func in strchr memcpy memmove
  2178. do
  2179. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2180. echo "configure:2181: checking for $ac_func" >&5
  2181. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2182.   echo $ac_n "(cached) $ac_c" 1>&6
  2183. else
  2184.   cat > conftest.$ac_ext <<EOF
  2185. #line 2186 "configure"
  2186. #include "confdefs.h"
  2187. /* System header to define __stub macros and hopefully few prototypes,
  2188.     which can conflict with char $ac_func(); below.  */
  2189. #include <assert.h>
  2190. /* Override any gcc2 internal prototype to avoid an error.  */
  2191. /* We use char because int might match the return type of a gcc2
  2192.     builtin and then its argument prototype would still apply.  */
  2193. char $ac_func();
  2194.  
  2195. int main() {
  2196.  
  2197. /* The GNU C library defines this for functions which it implements
  2198.     to always fail with ENOSYS.  Some functions are actually named
  2199.     something starting with __ and the normal name is an alias.  */
  2200. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2201. choke me
  2202. #else
  2203. $ac_func();
  2204. #endif
  2205.  
  2206. ; return 0; }
  2207. EOF
  2208. if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2209.   rm -rf conftest*
  2210.   eval "ac_cv_func_$ac_func=yes"
  2211. else
  2212.   echo "configure: failed program was:" >&5
  2213.   cat conftest.$ac_ext >&5
  2214.   rm -rf conftest*
  2215.   eval "ac_cv_func_$ac_func=no"
  2216. fi
  2217. rm -f conftest*
  2218. fi
  2219.  
  2220. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2221.   echo "$ac_t""yes" 1>&6
  2222.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2223.   cat >> confdefs.h <<EOF
  2224. #define $ac_tr_func 1
  2225. EOF
  2226.  
  2227. else
  2228.   echo "$ac_t""no" 1>&6
  2229. fi
  2230. done
  2231. # Check whether --enable-debug or --disable-debug was given.
  2232. if test "${enable_debug+set}" = set; then
  2233.   enableval="$enable_debug"
  2234.   case x$withval in
  2235.     xno) ;;
  2236.     x*)  cat >> confdefs.h <<\EOF
  2237. #define DEBUG 1
  2238. EOF
  2239. ;;
  2240.    esac
  2241. fi
  2242. # Check whether --with-motif or --without-motif was given.
  2243. if test "${with_motif+set}" = set; then
  2244.   withval="$with_motif"
  2245.   case x$withval in
  2246.     xno) MOTIF_OBJS=; MOTIF_DEMOS=;;
  2247.     x*)  ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
  2248. echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
  2249. echo "configure:2250: checking for Xm/Xm.h" >&5
  2250. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2251.   echo $ac_n "(cached) $ac_c" 1>&6
  2252. else
  2253.   cat > conftest.$ac_ext <<EOF
  2254. #line 2255 "configure"
  2255. #include "confdefs.h"
  2256. #include <Xm/Xm.h>
  2257. EOF
  2258. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2259. { (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2260. ac_err=`grep -v '^ *+' conftest.out`
  2261. if test -z "$ac_err"; then
  2262.   rm -rf conftest*
  2263.   eval "ac_cv_header_$ac_safe=yes"
  2264. else
  2265.   echo "$ac_err" >&5
  2266.   echo "configure: failed program was:" >&5
  2267.   cat conftest.$ac_ext >&5
  2268.   rm -rf conftest*
  2269.   eval "ac_cv_header_$ac_safe=no"
  2270. fi
  2271. rm -f conftest*
  2272. fi
  2273. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2274.   echo "$ac_t""yes" 1>&6
  2275.   MOTIF_OBJS="GLwMDrawingArea.o GLwCreateMDrawingArea.o                         MesaMDrawingArea.o GLwMMakeCurrent.o                         MesaMWorkstation.o";
  2276.             MOTIF_DEMOS=""
  2277. else
  2278.   echo "$ac_t""no" 1>&6
  2279. fi
  2280. ;;
  2281.    esac
  2282. else
  2283.   MOTIF_OBJS=; MOTIF_DEMOS=
  2284. fi
  2285. # Check whether --with-mesadir or --without-mesadir was given.
  2286. if test "${with_mesadir+set}" = set; then
  2287.   withval="$with_mesadir"
  2288.   case x$withval in
  2289.     xno) mesa_srcdir="`pwd`";;
  2290.     x)   mesa_srcdir="`cd .. && pwd`";;
  2291.     x*)  mesa_srcdir="`cd $withval && pwd`";;
  2292.    esac
  2293. else
  2294.   mesa_srcdir="`cd .. && pwd`"
  2295. fi
  2296. trap '' 1 2 15
  2297. cat > confcache <<\EOF
  2298. # This file is a shell script that caches the results of configure
  2299. # tests run on this system so they can be shared between configure
  2300. # scripts and configure runs.  It is not useful on other systems.
  2301. # If it contains results you don't want to keep, you may remove or edit it.
  2302. #
  2303. # By default, configure uses ./config.cache as the cache file,
  2304. # creating it if it does not exist already.  You can give configure
  2305. # the --cache-file=FILE option to use a different cache file; that is
  2306. # what configure does when it calls configure scripts in
  2307. # subdirectories, so they share the cache.
  2308. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2309. # config.status only pays attention to the cache file if you give it the
  2310. # --recheck option to rerun configure.
  2311. #
  2312. EOF
  2313. # The following way of writing the cache mishandles newlines in values,
  2314. # but we know of no workaround that is simple, portable, and efficient.
  2315. # So, don't put newlines in cache variables' values.
  2316. # Ultrix sh set writes to stderr and can't be redirected directly,
  2317. # and sets the high bit in the cache file unless we assign to the vars.
  2318. (set) 2>&1 |
  2319.   case `(ac_space=' '; set) 2>&1` in
  2320.   *ac_space=\ *)
  2321.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2322.     # turns \\\\ into \\, and sed turns \\ into \).
  2323.     sed -n \
  2324.       -e "s/'/'\\\\''/g" \
  2325.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2326.     ;;
  2327.   *)
  2328.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2329.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2330.     ;;
  2331.   esac >> confcache
  2332. if cmp -s $cache_file confcache; then
  2333.   :
  2334. else
  2335.   if test -w $cache_file; then
  2336.     echo "updating cache $cache_file"
  2337.     cat confcache > $cache_file
  2338.   else
  2339.     echo "not updating unwritable cache $cache_file"
  2340.   fi
  2341. fi
  2342. rm -f confcache
  2343.  
  2344. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2345.  
  2346. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2347. # Let make expand exec_prefix.
  2348. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2349.  
  2350. # Any assignment to VPATH causes Sun make to only execute
  2351. # the first set of double-colon rules, so remove it if not needed.
  2352. # If there is a colon in the path, we need to keep it.
  2353. if test "x$srcdir" = x.; then
  2354.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2355. fi
  2356.  
  2357. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2358.  
  2359. # Transform confdefs.h into DEFS.
  2360. # Protect against shell expansion while executing Makefile rules.
  2361. # Protect against Makefile macro expansion.
  2362. cat > conftest.defs <<\EOF
  2363. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2364. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2365. s%\[%\\&%g
  2366. s%\]%\\&%g
  2367. s%\$%$$%g
  2368. EOF
  2369. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2370. rm -f conftest.defs
  2371.  
  2372.  
  2373. # Without the "./", some shells look in PATH for config.status.
  2374. : ${CONFIG_STATUS=./config.status}
  2375.  
  2376. echo creating $CONFIG_STATUS
  2377. rm -f $CONFIG_STATUS
  2378. cat > $CONFIG_STATUS <<EOF
  2379. #! /bin/sh
  2380. # Generated automatically by configure.
  2381. # Run this file to recreate the current configuration.
  2382. # This directory was configured as follows,
  2383. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2384. #
  2385. # $0 $ac_configure_args
  2386. #
  2387. # Compiler output produced by configure, useful for debugging
  2388. # configure, is in ./config.log if it exists.
  2389.  
  2390. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2391. for ac_option
  2392. do
  2393.   case "\$ac_option" in
  2394.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2395.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2396.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2397.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2398.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2399.     exit 0 ;;
  2400.   -help | --help | --hel | --he | --h)
  2401.     echo "\$ac_cs_usage"; exit 0 ;;
  2402.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2403.   esac
  2404. done
  2405.  
  2406. ac_given_srcdir=$srcdir
  2407. ac_given_INSTALL="$INSTALL"
  2408.  
  2409. trap 'rm -fr `echo "Makefile src/Makefile include/GL/Makefile
  2410.            demos/Makefile man/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2411. EOF
  2412. cat >> $CONFIG_STATUS <<EOF
  2413.  
  2414. # Protect against being on the right side of a sed subst in config.status.
  2415. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2416.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2417. $ac_vpsub
  2418. $extrasub
  2419. s%@CFLAGS@%$CFLAGS%g
  2420. s%@CPPFLAGS@%$CPPFLAGS%g
  2421. s%@CXXFLAGS@%$CXXFLAGS%g
  2422. s%@DEFS@%$DEFS%g
  2423. s%@LDFLAGS@%$LDFLAGS%g
  2424. s%@LIBS@%$LIBS%g
  2425. s%@exec_prefix@%$exec_prefix%g
  2426. s%@prefix@%$prefix%g
  2427. s%@program_transform_name@%$program_transform_name%g
  2428. s%@bindir@%$bindir%g
  2429. s%@sbindir@%$sbindir%g
  2430. s%@libexecdir@%$libexecdir%g
  2431. s%@datadir@%$datadir%g
  2432. s%@sysconfdir@%$sysconfdir%g
  2433. s%@sharedstatedir@%$sharedstatedir%g
  2434. s%@localstatedir@%$localstatedir%g
  2435. s%@libdir@%$libdir%g
  2436. s%@includedir@%$includedir%g
  2437. s%@oldincludedir@%$oldincludedir%g
  2438. s%@infodir@%$infodir%g
  2439. s%@mandir@%$mandir%g
  2440. s%@host@%$host%g
  2441. s%@host_alias@%$host_alias%g
  2442. s%@host_cpu@%$host_cpu%g
  2443. s%@host_vendor@%$host_vendor%g
  2444. s%@host_os@%$host_os%g
  2445. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2446. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2447. s%@LN_S@%$LN_S%g
  2448. s%@POD2MAN@%$POD2MAN%g
  2449. s%@POD2HTML@%$POD2HTML%g
  2450. s%@RANLIB@%$RANLIB%g
  2451. s%@ARFLAGS@%$ARFLAGS%g
  2452. s%@SYS_CFLAGS@%$SYS_CFLAGS%g
  2453. s%@SYS_LDFLAGS@%$SYS_LDFLAGS%g
  2454. s%@CC@%$CC%g
  2455. s%@CPP@%$CPP%g
  2456. s%@X_CFLAGS@%$X_CFLAGS%g
  2457. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  2458. s%@X_LIBS@%$X_LIBS%g
  2459. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  2460. s%@HAVE_XMU@%$HAVE_XMU%g
  2461. s%@XMU_LIB@%$XMU_LIB%g
  2462. s%@HAVE_XAW@%$HAVE_XAW%g
  2463. s%@XAW_LIB@%$XAW_LIB%g
  2464. s%@XAW_DEMOS@%$XAW_DEMOS%g
  2465. s%@MOTIF_OBJS@%$MOTIF_OBJS%g
  2466. s%@MOTIF_DEMOS@%$MOTIF_DEMOS%g
  2467. s%@mesa_srcdir@%$mesa_srcdir%g
  2468.  
  2469. CEOF
  2470. EOF
  2471.  
  2472. cat >> $CONFIG_STATUS <<\EOF
  2473.  
  2474. # Split the substitutions into bite-sized pieces for seds with
  2475. # small command number limits, like on Digital OSF/1 and HP-UX.
  2476. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2477. ac_file=1 # Number of current file.
  2478. ac_beg=1 # First line for current file.
  2479. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2480. ac_more_lines=:
  2481. ac_sed_cmds=""
  2482. while $ac_more_lines; do
  2483.   if test $ac_beg -gt 1; then
  2484.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2485.   else
  2486.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2487.   fi
  2488.   if test ! -s conftest.s$ac_file; then
  2489.     ac_more_lines=false
  2490.     rm -f conftest.s$ac_file
  2491.   else
  2492.     if test -z "$ac_sed_cmds"; then
  2493.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2494.     else
  2495.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2496.     fi
  2497.     ac_file=`expr $ac_file + 1`
  2498.     ac_beg=$ac_end
  2499.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2500.   fi
  2501. done
  2502. if test -z "$ac_sed_cmds"; then
  2503.   ac_sed_cmds=cat
  2504. fi
  2505. EOF
  2506.  
  2507. cat >> $CONFIG_STATUS <<EOF
  2508.  
  2509. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile include/GL/Makefile
  2510.            demos/Makefile man/Makefile"}
  2511. EOF
  2512. cat >> $CONFIG_STATUS <<\EOF
  2513. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2514.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2515.   case "$ac_file" in
  2516.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2517.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2518.   *) ac_file_in="${ac_file}.in" ;;
  2519.   esac
  2520.  
  2521.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2522.  
  2523.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2524.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2525.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2526.     # The file is in a subdirectory.
  2527.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2528.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2529.     # A "../" for each directory in $ac_dir_suffix.
  2530.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2531.   else
  2532.     ac_dir_suffix= ac_dots=
  2533.   fi
  2534.  
  2535.   case "$ac_given_srcdir" in
  2536.   .)  srcdir=.
  2537.       if test -z "$ac_dots"; then top_srcdir=.
  2538.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2539.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2540.   *) # Relative path.
  2541.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2542.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2543.   esac
  2544.  
  2545.   case "$ac_given_INSTALL" in
  2546.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2547.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2548.   esac
  2549.  
  2550.   echo creating "$ac_file"
  2551.   rm -f "$ac_file"
  2552.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2553.   case "$ac_file" in
  2554.   *Makefile*) ac_comsub="1i\\
  2555. # $configure_input" ;;
  2556.   *) ac_comsub= ;;
  2557.   esac
  2558.  
  2559.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2560.   sed -e "$ac_comsub
  2561. s%@configure_input@%$configure_input%g
  2562. s%@srcdir@%$srcdir%g
  2563. s%@top_srcdir@%$top_srcdir%g
  2564. s%@INSTALL@%$INSTALL%g
  2565. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2566. fi; done
  2567. rm -f conftest.s*
  2568.  
  2569. EOF
  2570. cat >> $CONFIG_STATUS <<EOF
  2571.  
  2572. EOF
  2573. cat >> $CONFIG_STATUS <<\EOF
  2574.  
  2575. exit 0
  2576. EOF
  2577. chmod +x $CONFIG_STATUS
  2578. rm -fr confdefs* $ac_clean_files
  2579. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2580.  
  2581.